<table class="list">
<colgroup>
    <col width="70%">
    <col width="20%">
    <col width="10%">
</colgroup>
  <tr>
    <th>댓글</th>
    <th>등록일</th>
    <th>사용여부</th>
  </tr>
<% for board_comment in @board_comments %>
  <tr>
    <td style="text-align:left;">
        <%= link_to_remote board_comment.title,:update => 'comment_form' , 
                :url => {:action=>"edit",:board_post_id => params[:board_post_id],:id=> board_comment.id} %> [<%= board_comment.user.name %>]
    <div style="padding-left:5px;">
        <%= board_comment.content %>
    </div>
    </td>
    <td></td>
    <td><%= (board_comment.fl_enable == 1 ? "사용" : "삭제") %></td>
  </tr>
<% end %>
</table>
<%= link_to_remote 'Previous page', {:update=>"comments",:url=>{
						:board_post_id=>params[:board_post_id],
						:page => @board_comment_pages.current.previous } } if @board_comment_pages.current.previous %>
<%= link_to_remote 'Next page', {:update=>"comments",:url=>{ :board_post_id=>params[:board_post_id],:page => @board_comment_pages.current.next }} if @board_comment_pages.current.next %> 

<br />

<div id="comment_form">

</div>
<div class="nav">
<%= link_to_remote '등록', :update => 'comment_form' , :url => {:action=>"new"}%>
</div>
